package com.hq.modules.sys.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hq.modules.sys.entity.People;
import com.hq.modules.sys.dao.PeopleMapper;
import com.hq.service.PeopleService;

@Service
public class PeopleServiceImpl implements PeopleService {

    @Resource
    private PeopleMapper peopleMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return peopleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(People record) {
        return peopleMapper.insert(record);
    }

    @Override
    public int insertSelective(People record) {
        return peopleMapper.insertSelective(record);
    }

    @Override
    public People selectByPrimaryKey(Integer id) {
        return peopleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(People record) {
        return peopleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(People record) {
        return peopleMapper.updateByPrimaryKey(record);
    }

}




